package com.statistics.yfdata.entity;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * Created by studio on 2017/4/13.
 *
 */
@Entity
public class DataWaterEntity {
    private int id;
    private long createTime;
    private BigDecimal waterFlow;
    private String mac;
    private int offset;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "create_time")
    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "mac")
    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    @Basic
    @Column(name = "water_flow")
    public BigDecimal getWaterFlow() {
        return waterFlow;
    }

    public void setWaterFlow(BigDecimal waterFlow) {
        this.waterFlow = waterFlow;
    }

    @Basic
    @Column(name = "offset")
    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }


}
